package com.prj.ufdm.cloud.feign.bpo;

import java.util.List;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import com.prj.ufdm.cloud.feign.config.FeignConfiguration;
import com.prj.ufdm.cloud.feign.fallback.NewsFallback;
import com.prj.ufdm.cloud.feign.model.News;

/**
  * 调用MS-NEWS服务
 * @author Administrator
 *
 */
@FeignClient(name="MS-NEWS",fallbackFactory = NewsFallback.class,configuration = FeignConfiguration.class)
public interface NewsBPO {
	
	@RequestMapping(method = RequestMethod.GET, value = "/api/news/news/list")
	public List<News> getNewsList();

}
